package com.mtgdeckbuilder.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TabPanel;
import com.mtgdeckbuilder.client.builder.CardPanelBuilder;
import com.mtgdeckbuilder.client.builder.DeckPanelBuilder;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 * 
 * @author Nicolas Deslandes
 */
public class Mtg_deck_builder implements EntryPoint {

   /**
    * This is the entry point method.
    */
   @Override
   public void onModuleLoad() {
      final TabPanel tabPanel = new TabPanel();
      tabPanel.setWidth("100%");
      tabPanel.setHeight("100%");
      RootPanel.get().add(tabPanel);
      final Panel cardPanel = new CardPanelBuilder().build();
      final Panel deckPanel = new DeckPanelBuilder().build();

      tabPanel.add(deckPanel, "Deck");
      tabPanel.add(cardPanel, "Card");
      tabPanel.selectTab(0);
   }

}
